import {ReqGetGoodsList} from "@/api"
const state = {
    goods:{}  
}
const mutations = {
    SAVE_GOODS_LIST(state,value){
        state.goods = value;
    }
}

const actions = {
    async getGoodsList({commit},params){
        let data = await ReqGetGoodsList(params);
        console.log(data);
        commit("SAVE_GOODS_LIST",data);
    }
}
const getters = {

}
export default {
    namespaced:true,
    state,
    mutations,
    actions,
    getters
}